<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
    <title><ui:insert name="title" /></title>
</h:head>
<h:body>
    <div class="page">
        <div class="header">
            <h:form>
                <p:tabMenu activeIndex="0">
                    <p:menuitem value="TCenter" outcome="tcenter.xhtml" />
                    <p:menuitem value="Prospective Students" outcome="prospectiveStudents.xhtml" />
                    <p:menuitem value="Current Students" outcome="currentStudents.xhtml" />
                    <p:menuitem value="Partners" outcome="partners.xhtml" />
                    <p:menuitem value="Alumni" outcome="alumni.xhtml" />
                    <p:menuitem value="Sign in" outcome="login.xhtml" rendered="#{!loginBean.logged}" />
                    <p:menuitem value="#{p:userPrincipal().name}" id="userProfile" rendered="#{loginBean.logged}" />
                </p:tabMenu>

                <p:menu overlay="true" trigger="userProfile" my="left top" at="left bottom">
                    <p:menuitem value="Profile" outcome="studentProfile.xhtml" />
                    <p:separator />
                    <p:menuitem value="Sign out" url="/j_spring_security_logout" />
                </p:menu>

            </h:form><br />
        </div>

        <div class="leftMenu" style="float: left">
            <ui:insert name="leftMenu" />
        </div>

        <div class="content">
            <ui:insert name="content" />
        </div>

        <div class="footer"></div>
    </div>





</h:body>
</html>